package org.lee.strategy.app.event;

import org.lee.strategy.app.ICouponDiscount;

import java.math.BigDecimal;

/**
 * NYGCouponDiscount
 * N元购
 *
 * @author dralee
 * @date 2021-11-24 11:31:58
 **/
public class NYGCouponDiscount implements ICouponDiscount<Double> {

    /**
     * n元购
     * 1、元论原价多少都固定金额购买
     *
     * @param couponInfo: 券折扣信息：直减、满减，折扣、N元购
     * @param skuPrice:   sku金额
     * @return
     */
    @Override
    public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {

        return new BigDecimal(couponInfo);
    }
}
